import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'

// 安全距离
export function useSafeAreaDistance() {
  const safeArea = ref({})
  onLoad(() => {
    safeArea.value = uni.getWindowInfo().safeAreaInsets
  })
  return {
    safeArea
  }
}
